<?php

require_once 'PipesImpl/FileSystem/ModelList/Finder.php';

class Pipes_FileSystem_ModelList_Loader
{
    private $_finder = null;

    public function __construct(PipesImpl_FileSystem_ModelList_Finder $finder) {
        $this->_finder = $finder;
    }

    public function load($name) {
        $file = $this->_finder->find($name);
        $file->requireOnce();
    }

    public function __get($key) {
        return $this->_finder->$key;
    }
}
